package com.dzf.service.impl;

import com.dzf.entity.Permission;
import com.dzf.mapper.PermissionMapper;
import com.dzf.service.PermissionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class PermissionServiceImpl implements PermissionService {
    @Autowired
    PermissionMapper permissionMapper;

    @Override
    public List<Permission> findAll() {
        return permissionMapper.findAll();
    }

    @Override
    public List<Permission> findByUserPer(int id){
        return permissionMapper.findByUserPer(id);
    };
}
